<!-- 客户管理-企业列表 vue -->

<template>
    <div>

        <el-tabs type="border-card" @tab-click="handleClick" v-model="activeName2">
            <el-tab-pane label="设计咨询" name="a">
                <designListVue v-if="name == 'a'"></designListVue>
            </el-tab-pane>
            <el-tab-pane label="金融投资" name="b">
                <moneyListVue v-if="name == 'b'"></moneyListVue>
            </el-tab-pane>
            <el-tab-pane label="设备提供" name="c">
                <deviceListVue v-if="name == 'c'"></deviceListVue>
            </el-tab-pane>
            <el-tab-pane label="项目承建" name="d">
                <buildListVue v-if="name == 'd'"></buildListVue>
            </el-tab-pane>
            <el-tab-pane label="后续运维" name="e">
                <opsListVue v-if="name == 'e'"></opsListVue>
            </el-tab-pane>
        </el-tabs>
        <!-- 添加企业 -->
        <!--<el-dialog title="添加企业" :visible.sync="dialog.addCompanyDialog.open" :modal="false" size="full" v-if="dialog.addCompanyDialog.open">-->
            <!--<addCompanyDialog></addCompanyDialog>-->
        <!--</el-dialog>-->
    </div>
</template>
<script>
    import Bus from '@/config/bus.js'
    import designListVue from '@/components/ecological/guangfuChild/designC.vue'
    import buildListVue from '@/components/ecological/guangfuChild/build.vue'
    import deviceListVue from '@/components/ecological/guangfuChild/device.vue'
    import moneyListVue from '@/components/ecological/guangfuChild/money.vue'
    import opsListVue from '@/components/ecological/guangfuChild/ops.vue'
//    import addCompanyDialog from '@/components/ecological/guangfuChild/designC.vue'

    export default {
        components:{designListVue,buildListVue,moneyListVue,deviceListVue,opsListVue},
        data() {
            return {
                activeName2:'a',
                name:'a',
                dialog:{
                    addCompanyDialog:{
                        open:false
                    }
                }
            }
        },
        methods:{
            handleClick(tab) {
                this.name = tab.name
                console.log(tab.name);
            },
            openDialog(dialog){
                this.dialog[dialog].open = true
            }
        }
    }
</script>
